const { defineConfig } = require('@vue/cli-service')
//加载path模块
const path = require('path')
//定义resolve方法，把相对路径转换成绝对路径
const resolve = dir => path.join(__dirname, dir)
module.exports = defineConfig({
  // transpileDependencies: true,
  // 修改端口号
  devServer: {
    port: 8081,
  },
  chainWebpack: config => {
    // 添加别名
    config.resolve.alias
      .set('@', resolve('src'))
      .set('#', resolve('./'))// 根目录
  },
})
